package com.example.mylibrarybase.bar;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.base.baseui.BaseActivity;



public class Activity_00_Title1 extends BaseActivity {

    private String mPos;
    private RelativeLayout mAction_bar;
    private TextView mAction_bar_title_name;
    private TextView mAction_bar_tv_back;
    private ImageView action_bar_ib_back;
    private initAction_Bar mBase_action_bar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getBox();

    }

    public void getBox() {
         mPos = getIntent().getStringExtra("pos");

        initView(mPos);
    }

    private void initView(String pos) {
        switch (pos){
            case "1":
                jump1();

                break;
        }
    }

    private void jump1() {
        mBase_action_bar = (initAction_Bar) findViewById(R.id.base_action_bar);
        mBase_action_bar
                .setMode(initAction_Bar.AUTO_ONCLICK_MODE)
                .setCallBack(new initAction_Bar.Action_bar_call_back() {
                    @Override
                    public void getAction_barView_backbutton(TextView textView) {
                        textView.setText("返回");
                    }

                    @Override
                    public void getAction_barView_backbutton_icon(ImageView imageView) {

                    }

                    @Override
                    public void getAction_barView_title(TextView textView) {
                        textView.setText("主标题");
                    }

                    @Override
                    public void getAction_barView_right_icon(ImageView imageView) {

                    }
                });
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_00_title;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

}
